package com.mingqijia.gassafety.webserver.service.workorder;

import com.mingqijia.gassafety.db.entity.Consumer;
import com.mingqijia.gassafety.webserver.request.ContactsRequest;
import com.mingqijia.gassafety.webserver.request.NewAsstCreateRequest;
import com.mingqijia.gassafety.webserver.request.NewAsstUnbindRequest;

import javax.validation.Valid;

import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.workorder.NewAsstEditContactRequest;
import com.mingqijia.gassafety.webserver.request.workorder.SparkOrderRequest;
import com.mingqijia.gassafety.webserver.request.workorder.SparkOrderStatusRequest;
import com.mingqijia.gassafety.webserver.request.workorder.asst.ContactsItemRequest;
import com.mingqijia.gassafety.webserver.request.workorder.mbp.EquipmentInfoRequest;
import com.mingqijia.gassafety.webserver.response.workorder.mbp.BrokenLogResponse;
import com.mingqijia.gassafety.webserver.response.workorder.mbp.InfoAndAlertLogResponse;

import java.util.List;

public interface SyncNewAsstOrderService {
    void createConsumerBindImei(@Valid NewAsstCreateRequest request);

    void unbindEquipment(@Valid NewAsstUnbindRequest request);
    InfoAndAlertLogResponse getEquipmentInfo(EquipmentInfoRequest request);

    PageUtil<BrokenLogResponse> getBrokenLog(EquipmentInfoRequest request);

    void editContacts(NewAsstEditContactRequest request);

    void createSparkOrder(SparkOrderRequest request);

    Integer spark(SparkOrderRequest request);
    
    Integer sparkStatus(SparkOrderRequest request);

    void doEditContacts(List<ContactsItemRequest> contactsList, String spId, Consumer consumer);
}
